<%@ include file="/en/jsp/static.jsp" %>
<%@ page import="linuxbox.admin.logic.User" %>
<%@ taglib uri="/linuxbox/UserAdmin.tld" prefix="user" %>
<jsp:include page="/en/jsp/header.jsp" flush="false"/>
<%
    User user = (User)request.getAttribute("USER");

  String USER_ID = Integer.toString(user.getID());
  String LOGIN_ID = user.getLoginID();
  String FIRST_NAME = user.getFirstName();
  String LAST_NAME = user.getLastName();
  String ADDRESS = user.getAddress();
  String CITY = user.getCity();
  String STATE = user.getState();
  String ZIPCODE = user.getZipCode();
  String PHONE = user.getPhone();
  String FAX = user.getFax();
  String MOBILE = user.getMobile();
  String EMAIL = user.getEmail();
  String MANAGER_ID = Integer.toString(user.getManagerID());
  String DEPT_ID = Integer.toString(user.getDeptID());
  String IS_MANAGER = user.getIsManager()?"checked":"";
  String DISABLE = user.getDisable()?"checked":"";
  String NO_EXPIRE = user.getNoExpire()?"checked":"";
  String NOTE = user.getNote();
%>
<SCRIPT LANGUAGE="Javascript">

</SCRIPT>
<table>
<FORM METHOD="POST" NAME="confirm">
<INPUT TYPE="hidden" NAME="USER_ID" VALUE="<%=USER_ID%>">

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
<tr><td>
    &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
    <b><%=boxName%> - User Information</b>
</td></tr>
</table>
<br>

<DIV>
<TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="1" CELLSPACING="0" WIDTH="98%">
  <TR><TD class="bg_darkgreen">
  <TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="0" CELLSPACING="5" WIDTH="100%">
  <TR><TD class="bg_darkgreen">
    <p class="white"><b>&nbsp;Edit User Profile</b></p>
  </TD></TR>
  </TABLE>

    <TABLE ALIGN="center" BGCOLOR="#f6f6f6" BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="100%" HEIGHT="100%">
  <TR><TD class="bg_lightgray" colspan="2"><br>
    <p class="red">&nbsp;&nbsp; <i>Note: Required fields are indicated with an Asterisk (*).</i></p>
  </TD></TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV><B>Login ID</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><%=LOGIN_ID%></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>First Name *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><%=FIRST_NAME%></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>Last Name *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><%=LAST_NAME%></DIV>
      </TD>
    </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p class="red"><b>Address *</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=ADDRESS%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>City/Town</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=CITY%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>State/Province</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=STATE%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p class="red"><b>Zip/Postal Code *</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=ZIPCODE%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>Telephone</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=PHONE%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>Facsimile</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=FAX%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>Mobile Phone</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=MOBILE%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p class="red"><b>E-mail Address *</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><%=EMAIL%></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <p><b>User's Manager</b></p>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><SELECT NAME="MANAGER_ID">
      <user:ManagerList listType="full" selected="<%=MANAGER_ID%>"/>
      <OPTION value="-1">None</OPTION>
    </SELECT></DIV>
    </TD>
  </TR>
  <TR>
    <TD class="bg_lightgray" width="30%">
    <DIV class="red"><b>User's Department *</b></DIV>
    </TD>
    <TD class="bg_lightgray" width="70%">
    <DIV><SELECT NAME="DEPT_ID">
          <user:DeptList listType="select" selected="<%=DEPT_ID%>"/>
      <OPTION value="-1">None</OPTION>
    </SELECT></DIV>
    </TD>
  </TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><B>Note</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="NOTE" MAXLENGTH="128" VALUE="<%=NOTE%>"></DIV>
      </TD>
    </TR>
    <TR>
      <TD ALIGN="center" COLSPAN="2" VALIGN="top" class="bg_lightgray">
        <TABLE ALIGN="center" BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="100%">
        <TR><TD ALIGN="left" COLSPAN="2" VALIGN="top">
          <B>User Attributes</B>
          <HR ALIGN="center" SIZE="1" WIDTH="100%">
        </TD></TR>
        <TR><TD ALIGN="left" VALIGN="top" WIDTH="50%">
            <INPUT TYPE="checkbox" NAME="IS_MANAGER" <%=IS_MANAGER%> value="CHECKED"> Manager Status<BR>
            <INPUT TYPE="checkbox" NAME="DISABLE" <%=DISABLE%> value="CHECKED"> Disable<BR>
            <INPUT TYPE="checkbox" NAME="NO_EXPIRE" <%=NO_EXPIRE%> value="CHECKED"> No Expire<BR>
        </TD></TR>
    </TABLE>
      </TD>
    </TR>
  </TABLE>
</TD></TR>
</TABLE>
</DIV>
</FORM>
</table>
<jsp:include page="/en/jsp/footer.jsp" flush="true"/>

